package com.github.shuaidd.model.dto;

import lombok.Data;

import javax.xml.bind.annotation.*;
import java.io.Serializable;

/**
 * 描述 bpmn xml 对象
 *
 * @author ddshuai
 * @date 2020-08-08 14:58
 **/
@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "bpmn:definitions")
public class BpmnXmlDTO implements Serializable {
    private static final long serialVersionUID = 8966818245116100561L;

    @XmlElement(name = "bpmn:process")
    private BpmnProcessDTO bpmnProcess;

    @XmlElement(name = "bpmndi:BPMNDiagram")
    private DiagramDTO diagram;

    @XmlAttribute(name = "xmlns:xsi")
    private String xsi;

    @XmlAttribute(name = "xmlns:bpmn")
    private String bpmn;

    @XmlAttribute(name = "xmlns:bpmndi")
    private String bpmndi;

    @XmlAttribute(name = "xmlns:dc")
    private String dc;

    @XmlAttribute(name = "xmlns:di")
    private String di;

    @XmlAttribute(name = "xmlns:camunda")
    private String camunda;

    @XmlAttribute(name = "id")
    private String id;

    @XmlAttribute(name = "targetNamespace")
    private String targetNamespace;

    @XmlAttribute(name = "exporter")
    private String exporter;

    @XmlAttribute(name = "exporterVersion")
    private String exporterVersion;
}
